package com.ksy.common.login;

/**
 * Created by Ksy
 */

public class LoginAction<T> {
    public T data;

    public LoginAction(LoginType loginType, LoginState loginState) {
        this.loginType = loginType;
        this.loginState = loginState;
    }

    public LoginAction(LoginType loginType, LoginState loginState, T data) {
        this.loginType = loginType;
        this.loginState = loginState;
        this.data = data;
    }

    public LoginType loginType;
    public LoginState loginState;

    public enum LoginType {
        WeChat,
        Server
    }

    /**
     * 三方登陆没有off
     */
    public enum LoginState {
        Cancel,
        LogOff,
        Error,
        LogOn,
    }

}
